﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Profile;
using System.Web.Security;

namespace SocialFront
{
    public class sfCommunityMember : ProfileBase
    {
        public static sfCommunityMember CurrentUser
        {
            get
            {
                return (sfCommunityMember)(Create(Membership.GetUser().UserName));
            }
        }

        public static sfCommunityMember GetUser(string userName)
        {
            return (sfCommunityMember)(Create(userName));
        }

        public string AboutMe
        {
            get
            {
                return ((string)(base["aboutMe"]));
            }
            set
            {
                base["aboutMe"] = value;
                Save();
            }
        }
        public string DateOfBirth
        {
            get
            {
                return ((string)(base["dateOfBirth"]));
            }
            set
            {
                base["dateOfBirth"] = value;
                Save();
            }
        }
        public string Newsletter
        {
            get
            {
                return ((string)(base["newsletter"]));
            }
            set
            {
                base["newsletter"] = value;
                Save();
            }
        }

    }
}
